<?php
if (!defined('IN_IA')) {
    exit('Access Denied');
}
$openid = get_sysopenid(true);
$memberinfo = get_member_info($openid);
$condition = " and is_delete = 0 and uid=" . intval($memberinfo['id']);
$sql = "select * from " . tablename('eshop_member_reservation') . " where 1 {$condition} order by reserve_time desc;";
$list = pdo_fetchall($sql);
include page('reservation_list');
?>